package com.cn.chaomeng.dao;

import com.cn.chaomeng.dto.FoodRetDTO;
import com.cn.chaomeng.model.Food;
import com.cn.chaomeng.model.example.FoodExample;
import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.session.RowBounds;

public interface FoodMapper {
    long countByExample(FoodExample example);

    int deleteByExample(FoodExample example);

    int deleteByPrimaryKey(Integer fid);

    int insert(Food record);

    int insertSelective(Food record);

    List<Food> selectByExampleWithRowbounds(FoodExample example, RowBounds rowBounds);

    List<Food> selectByExample(FoodExample example);

    Food selectByPrimaryKey(Integer fid);

    int updateByExampleSelective(@Param("record") Food record, @Param("example") FoodExample example);

    int updateByExample(@Param("record") Food record, @Param("example") FoodExample example);

    int updateByPrimaryKeySelective(Food record);

    int updateByPrimaryKey(Food record);

    List<Food> selectList(Map map);

    List<FoodRetDTO> selectFoodsSales(Map<String,Object> map);
}